package com.hilda.twitter.samples.timeline.utils;

public class Log {

	public final static boolean DEBUG_MODE = true;
	public final static String DEBUG_TAG = "com.hilda.twitter.samples.timeline";

	public static void i(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args)
				builder.append(arg);

			android.util.Log.i(DEBUG_TAG, builder.toString());
		}
	}

	public static void e(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args)
				builder.append(arg);

			android.util.Log.e(DEBUG_TAG, builder.toString());
		}
	}

	public static void e(String msg, Throwable e) {
		if (DEBUG_MODE) {
			android.util.Log.e(DEBUG_TAG, msg, e);
		}
	}

	public static void v(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args)
				builder.append(arg);

			android.util.Log.v(DEBUG_TAG, builder.toString());
		}
	}

	public static void d(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args)
				builder.append(arg);

			android.util.Log.d(DEBUG_TAG, builder.toString());
		}
	}

	public static void w(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args)
				builder.append(arg);

			android.util.Log.w(DEBUG_TAG, builder.toString());
		}
	}

	public static void wtf(String... args) {
		if (DEBUG_MODE) {

			StringBuilder builder = new StringBuilder();

			for (String arg : args) {
				builder.append("WTF! ");
				builder.append(arg);
			}

			android.util.Log.e(DEBUG_TAG, builder.toString());
		}
	}
}
